package com.docv.web.events;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.liferay.portal.kernel.events.Action;
import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.util.WebKeys;

public class CustomVelocityAction extends Action {

	@Override
	public void run(HttpServletRequest request, HttpServletResponse response) throws ActionException {
		Map<String, Object> vmVariables = new HashMap<String, Object>();
		vmVariables.put("porletHelper", new PorletHelper(request, response));
		request.setAttribute(WebKeys.VM_VARIABLES, vmVariables);
	}

}
